package com.example.module_web.view.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.example.module_web.base.BaseFragmentB;

/**
 * Created by ASUS on 2018/3/15.
 */

public abstract class FormFragment extends BaseFragmentB implements BaseFragmentB.RecyclerCom{
    protected static final String TAG = "bug";
    @Override
    public RecyclerView setupRecycler(Context context,RecyclerView recyclerView) {
        LinearLayoutManager layoutManager = new LinearLayoutManager(context);
        layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        recyclerView.setLayoutManager(layoutManager);
        recyclerView.addItemDecoration(new DividerItemDecoration(context, DividerItemDecoration.VERTICAL));
        recyclerView.setHasFixedSize(false);
        recyclerView.setNestedScrollingEnabled(false);
        return recyclerView;
    }
}
